<div><hr>
    <ul class="breadcrumb">
        <li><a href="#">菜单</a> <span class="divider">|</span></li>
        <li><a href="#">编辑</a></li>
    </ul>
    <hr>
</div>
<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-header" data-original-title>
            <h2><i class="icon-edit"></i><span class="break"></span>菜单</h2>
            <div class="box-icon">
                <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
            </div>
        </div>
        <div class="box-content">
            <form class="form-horizontal" action="<?php echo url('menu/edit'); ?>" method="post" id="editForm">
                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">菜单名称 </label>
                        <div class="controls">
                            <input type="text" class="required" name="menu[title]" value="<?php echo $menu['title']; ?>" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">上级菜单 </label>
                        <div class="controls">
                            <?php echo fetch('menuSelect', array('show' => 1, 'parentID' => $menu['parentID']));?>	
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">菜单类型 </label>
                        <div class="controls">
                            <?php
                                echo fetch('menuSource2', array('typeID' => $menu['typeID'], 'itemID' => $menu['itemID'], 'menuID' => $menu['id']));
                            ?>
                        </div>
                    </div>
                    <div class="control-group hidden-phone">
                        <label class="control-label" for="textarea2">排序</label>
                        <div class="controls">   
                            <input type="text" class="digits" name="menu[sortID]" value="<?php echo $menu['sortID'] ?>" />	
                        </div>
                    </div>
                    <div class="form-actions">
                        <input type="submit" value="修改"  id="submit" class="btn btn-primary" />
                        <button type="reset" class="btn">取消</button>
                    </div>
                </fieldset>
                <input type="hidden" name="id" value="<?php echo $menu['id']; ?>" />
            </form>   
        </div>
    </div>
</div>   


<script type="text/javascript">
    $(document).ready(function(){
        $("#submit").click(function(){
            submitForm('#editForm',"<?php echo url('menu'); ?>");
        });
    });
</script>
